﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Tai
{
    class Program
    {
        struct PersonStruct 
        {
            public string name;
            public string phone;
            public string add;
            public  void t()
            {
                Console.WriteLine("我的名字是{0}，电话是{1}，家在{2}",name,phone,add);
            }

        }
        static void Main(string[] args)
        {
            PersonStruct p1;
            p1.name = "Tom";
            p1.phone = "133313";
            p1.add = "河南";
            PersonStruct p2 = p1;
            p2.name = "Jerry";
            p1.t();
            PersonClass p3 = new PersonClass();
            p3.name = "Tom";
            p3.phone = "133313";
            p3.add = "河南";

            PersonClass p4 = p3;
            p4.name = "Jerry";
            p3.t();



        }
    }
}
